//
//  ViewForSection2Header.m
//  ProjectA
//
//  Created by dllo on 16/1/22.
//  Copyright © 2016年 刘旺辉. All rights reserved.
//

#import "ViewForSection2Header.h"
#import "AppMacro.h"
@interface ViewForSection2Header ()
@property (nonatomic, strong) UILabel *label;
@property (nonatomic, strong) UILabel *title;
@end

@implementation ViewForSection2Header

- (void)dealloc {
    
    [_label release];
    [_title release];
    [super dealloc];
}

- (instancetype)initWithReuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithReuseIdentifier:reuseIdentifier];
    
    if (self) {
        
        
        
        self.label = [[UILabel alloc] init];
        [self.contentView addSubview:self.label];
        [_label release];
        
        self.title = [[UILabel alloc] init];
        [self.contentView addSubview:self.title];
        [_title release];
        
        
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    
    self.label.frame = CGRectMake(10, 10, 5, self.frame.size.height - 22);
    self.label.layer.cornerRadius = 3;
    self.label.layer.masksToBounds = YES;
    
    self.title.frame = CGRectMake(25, 14, self.frame.size.width, self.frame.size.height - 30);
    self.title.text = @"精彩游记和专题";
    
    [UIView setColorWithLabelText:self.title nightColor:L_COLOR_WHITE dayColor:L_COLOR_BLACK];
    [UIView setColorWithLabelView:self.label nightColorWithRed:0 green:0 blue:0 alpha:1 dayColorWithRed:44 green:211 blue:209 alpha:1];
}



@end
